const initialState = {
    info:[]
}

const top = (state=[],action)=>{
    let {type,payload} = action
    switch(type){
        case "GET_TOP_LIST":
            return payload.list
        default:
            return state
    }
}
export default (state=initialState,action)=>{
    return {
        info:top(state.info,action)
    }
}